package com.naiterui.ehp.bs.esign.entity.mysql;

import static javax.persistence.GenerationType.IDENTITY;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicUpdate;

import lombok.Data;

/**
 * 推荐表实体(精简版)
 *
 * @author guoyongxiang
 * @date 2019/12/2 16:25
 * @since 1.0.0
 */
@Data
@Entity
@Table(name = "dr_medication_recom")
@DynamicUpdate
public class EsignDrMedicationRecom implements Serializable {

    private static final long serialVersionUID = -207725987946355840L;

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id", unique = true, nullable = false)
    private Long id;

    @Column(name = "doctor_id")
    private Long doctorId;

    @Column(name = "patient_id")
    private Long patientId;

    @Column(name = "status")
    private Integer status;

    @Column(name = "ext_id")
    private String extId;

    @Column(name = "expire_at", length = 19)
    private Date expireAt;

    @Column(name = "serial_number")
    private String serialNumber;

    @Column(name = "created_at", length = 19)
    private Date createdAt;

    @Column(name = "changed_at", length = 19)
    private Date changedAt;

}
